#!/bin/bash

if [ $# -ne 1 ]; then
	echo "usage: `basename $0` version_number"
	exit 1
fi

set -e

version="$1"

echo "Setting version: $version"

cd `dirname $0`

echo "$1" > version
sed -i "s/#define MATCHMAKER_VERSION \".*\"/#define MATCHMAKER_VERSION \"${version}\"/" hwu_osl_matchmaker/matchmaker/include/matchmaker/version.h

exit 0
